<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动-产品布局</title>
    <style>
        /* 清除样式 */
        * {
            margin: 0;
            padding: 0;
        }

        li {
            /* 去掉项目符号 */
            list-style: none;
        }

        .product {
            /* 实现版心居中 */
            margin: 50px auto;
            width: 1224px;
            height: 628px;
            background-color: pink;
        }

        .product .left {
            float: left;

            width: 234px;
            height: 628px;
            background-color: skyblue;
            
        }

        .product .right {
            float: right;

            width: 978px;
            height: 628px;
            background-color: brown;
            
        }

        .right li {
            float: left;
            margin-right: 14px;
            margin-bottom: 14px;
            width: 234px;
            height: 300px;
            background-color: burlywood;
        }
        /* 第4n个li去掉右侧的margin */
        .right li:nth-child(4n) {
            margin: 0;
        }

    </style>
</head>
<body>
    <!-- 版心：左右，左图；右：8个li -->
    <div class="product">
        <div class="left"></div>
        <div class="right">
            <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
    </div>
</body>
</html>